package Interface.lianxi04;
interface  A{
    void A();
}
interface  B{
    void  B();
}
class  MySuper implements   A{

    @Override
    public void A() {

    }
}
class MyClass extends MySuper implements  B{

    @Override
    public void B() {

    }
}
public class TestInterface {
    public static void main(String[] args) {
        MySuper mySuper =new MyClass();
        System.out.println(mySuper instanceof A);
        System.out.println(mySuper instanceof B);
        System.out.println(mySuper instanceof MySuper);
        System.out.println(mySuper instanceof MyClass);

    }
}
